package com.michael.aop.customer.interceptor;

import org.aopalliance.intercept.MethodInterceptor;
import org.aopalliance.intercept.MethodInvocation;

public class LogInterceptor implements MethodInterceptor {
    public Object invoke(MethodInvocation invocation) throws Throwable {
        Object[] arguments = invocation.getArguments();
        System.out.println("before  withdraw....."+arguments);
        Object proceed = invocation.proceed();

        System.out.println("after  withdraw....."+arguments);
        return proceed;
    }
}
